﻿/*
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

using System;
using Daidalos;

namespace DaidalosTestapp
{
    /// <summary>
    ///    A simple test program for the daidalos library.
    /// </summary>
    class Program
    {

        [MTAThread] 
        static void Main(string[] arguments)
        {
            // Configure the engine.
            Engine.Instance.Configure("client.xml");

            // Add the default texture path.
            Engine.Instance.AddTexturePath("textures");
            
            Daidalos.Management.LogManager.Instance.AddLog(new Daidalos.Utilities.HtmlLog("log.html"));

            // Initialize the engine.
            Engine.Instance.Initialize();

            Daidalos.Management.UIManager.Instance.AddComponent(new Daidalos.Components.Window("TestWindow", 20, 80, 400, 300, Daidalos.Components.Window.WindowStyle.Default));

            // Invoke the state machine.
            Engine.Instance.InvokeStateMachine();

            // Dispose of the engine.
            Engine.Instance.Dipose();
        }

	}
}
